package com.hucheng.user;

import com.alibaba.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import com.hucheng.common.config.aspect.DynamicDataSourceAspect;
import com.hucheng.common.config.db.DynamicDataSourceRegister;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author: 凉白开不加冰
 * @Date:   2019-06-17 14:33
 * @Description: 用户服务启动类
**/
@SpringBootApplication
@EnableDubboConfiguration
@EnableTransactionManagement
@Import(value = {DynamicDataSourceRegister.class, DynamicDataSourceAspect.class})
public class DubboUserProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(DubboUserProviderApplication.class, args);
    }

}
